<div class="container">
    <div class="row" >
        <div class="span12 blockGray">
            <div class="blockInner">
                 <ul class="breadcrumb">
                    <li>
                         <a href="<?php echo $view->url(array('module'=>'User','controller'=>'Store','action'=>'index'));?>">Tienda</a> <span class="divider">/</span>
                    </li>
                    <li>
                         <a href="<?php echo $view->url(array('module'=>'User','controller'=>'Store','action'=>'category','id'=>$view->category->getId()));?>"><?php echo $view->category->getName();?></a> <span class="divider">/</span>
                    </li>
                    <li class="active"><?php echo $view->user->getCommercialName();?></li>
                </ul>
            </div>
            <div class="blockInner">
                <?php
                echo '<h1>'.$view->user->getCommercialName().'</h1>';
                
                if(Model3_Auth::getCredentials('type') == DefaultDb_Entities_User::USER_CLIENT) 
                {
                    echo '<div id="addFavoriteBuyer" style="display:'.($view->favoriteFlagBuyer ? 'none' : 'block').'">';
                    echo '<a id="btn_add_buyer_'.$view->user->getId().'" href="#" class="btn" title="Agregar a Clientes Favoritos">';
                    echo '<input id="typeFavoriteBuyer" type="hidden" value="'.DefaultDb_Entities_FavoriteUsers::FAVORITE_BUYER.'"/>';
                    echo 'Agregar a Clientes Favoritos<img alt="Agregar a Favoritos" src="'.$view->getBaseUrlPublic().'/images/add_favorite.png"/>';
                    echo '</a>';
                    echo '</div>';
                    
                    echo '<div id="addFavoriteSeller" style="display:'.($view->favoriteFlagSeller ? 'none' : 'block').'">';
                    echo '<a id="btn_add_seller_'.$view->user->getId().'" href="#" class="btn" title="Agregar a Proveedores Favoritos">';
                    echo '<input id="typeFavoriteSeller" type="hidden" value="'.DefaultDb_Entities_FavoriteUsers::FAVORITE_SELLER.'"/>';
                    echo 'Agregar a Proveedores Favoritos<img alt="Agregar a Favoritos" src="'.$view->getBaseUrlPublic().'/images/add_favorite.png"/>';
                    echo '</a>';
                    echo '</div>';
                }
                echo '<div id="removeFavoriteBuyer" style="display:'.($view->favoriteFlagBuyer ? 'block' : 'none').'">';
                echo '<a id="btn_remove_'.$view->user->getId().'" href="#" class="btn" title="Remover de Clientes Favoritos">';
                echo 'Remover de Clientes Favoritos<img alt="Remover de Favoritos" src="'.$view->getBaseUrlPublic().'/images/favorite.png"/>';
                echo '</a>';
                echo '</div>';
                echo '<ul>';
                
                echo '<div id="removeFavoriteSeller" style="display:'.($view->favoriteFlagSeller ? 'block' : 'none').'">';
                echo '<a id="btn_remove_'.$view->user->getId().'" href="#" class="btn" title="Remover de Proveedores Favoritos">';
                echo 'Remover de Proveedores Favoritos<img alt="Remover de Favoritos" src="'.$view->getBaseUrlPublic().'/images/favorite.png"/>';
                echo '</a>';
                echo '</div>';
                echo '<ul>';
                foreach ($view->user->getCatalogs() as $cat)
                {
                    echo '<li>';
                    echo '<a href="'.$view->url(array('controller' => 'Store', 'action' => 'viewCatalog', 'id' => $cat->getId())).'">'.$cat->getTitle().'</a>';
                    echo '</li>';
                }
                echo '</ul>';
                ?>
            </div>
        </div>
    </div>
</div>